﻿{extend name="layout/base" /}

{block name="meta"}
{__block__}
<link rel="stylesheet" type="text/css" href="__ADDON__/__STYLE__/css/help.css" media="all">
<style>
    .h-hide ul{display:none}
    .h-hide p{margin:14px 5px 0 0;float:right;display:inline-block;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid#ccc}
    #parent>li>span{display:block;padding-left:10px;background:#eaeaea;border-bottom:1px solid #fff}#parent>li>span:hover{cursor:pointer;background:#dadada}
    #parent>li{line-height:33px;display:block}
    .h-show ul{display:block}
    .h-show p{margin:14px 5px 0 0;float:right;display:inline-block;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid#ccc}
    .h-list{border:1px solid #dedede}
    .h-list li{width:177px;line-height:20px;margin:5px 0 5px 10px;padding:2px 0;padding-left:20px;cursor:pointer}
    .h-list .h-curr{margin-left:10px}
    .h-curr{background:rgba(0,0,0,0) linear-gradient(to right,#eaeaea,#fff) repeat scroll 0 0;border-color:#dedede;border-image:none;border-width:1px;color:green;font-weight:bold}
    .h-list a:hover li{color:green;font-weight:bold}

</style>
{/block}

{block name="body"}
<body class="single_post_page">
{/block}

{block name="main"}
<!-- Breadcrumbs -->
<div class="breadcrumbs">
    <div class="container">
        <div class="row">
            <div class="col-xs-12">
                <ul>
                    <li class="home"> <a title="{:__('Go to Home Page')}" href="{:addon_url('mall')}">{:__('Home')}</a></li>
                    {if empty($bcNav)}
                    <li>
                        <span>&raquo;</span>
                        <span><strong>  全部资讯</strong></span>
                    </li>
                    {else/}
                        {volist name="bcNav" id='bc'}
                            <li>
                                <span>&raquo;</span>
                                <a href='{:addon_url("mall/help/index",["catId"=>$bc["id"]])}'><strong>  {$bc['name']}</strong></a>
                            </li>
                        {/volist}
                    {/if}
                </ul>
            </div>
        </div>
    </div>
</div>
<!-- Breadcrumbs End -->

<!-- Main Container -->
<section class="blog_post">
    <div class="container">

        <!-- row -->
        <div class="row">
            <!-- Left colunm -->
            <aside class="left sidebar col-xs-12 col-sm-3">
                <!-- Blog category -->
                <div class="block blog-module">
                    <div class="sidebar-bar-title">
                        <h3>资讯中心</h3>
                    </div>
                    <div class="block_content">
                        <!-- layered -->
                        <div class="layered layered-category">
                            <div class="layered-content">
                                <ul id="parent">
                                    {volist name="$list" id="bc" }
                                    <li class="h-cat h-show">
                                        <span>{$bc['name']}<p></p></span>
                                        <ul class="h-list">
                                            {volist name="$bc['children']" id="v1" key="k1"}
                                            <a href="{:addon_url('mall/help/index',['catId'=>$v1['id']])}">
                                                <li class="{if ($v1['id']==$catId)}h-curr{/if}">{$v1['name']}（{$v1['newsCount']}）</li>
                                            </a>
                                            {/volist}
                                        </ul>
                                    </li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                        <!-- ./layered -->
                    </div>
                </div>
                <!-- ./blog category  -->
            </aside>
            <!-- ./left colunm -->

            <!-- Center colunm-->
            <div class="col-xs-12 col-sm-9" id="center_column">
                <div class="center_column">
                    <div class="page-title">
                        {if(!input("catId") && !input("id"))}
                        <h2><span>N</span>ews&nbsp;资讯中心</h2>
                        {else /}
                        <h2><span>N</span>ews&nbsp;{$bc['name']}</h2>
                        {/if}
                    </div>
                    <ul class="blog-posts">
                        {volist name="newsList" id="li"}
                        <li class="post-item">
                            <article class="entry">
                                <div class="row">
                                    <div class="col-sm-5">
                                        <div class="entry-thumb image-hover2">
                                            <a href="{:addon_url('mall/help/detail',['id'=>$li['id']])}">
                                                <figure><img src="{$li['coverimg']}" ></figure>
                                            </a>
                                        </div>
                                    </div>
                                    <div class="col-sm-7">
                                        <h3 class="entry-title"><a href="{:addon_url('mall/help/detail',['id'=>$li['id']])}">{$li['articleTitle']}</a></h3>
                                        <div class="entry-meta-data">
                                            <span class="author"> <i class="fa fa-user"></i>&nbsp; by: <a href="#">{$li['nickname']}</a></span>
                                            <span class="cat"> <i class="fa fa-eye"></i>&nbsp; {$li['visitorNum']} </span>
                                            <span class="comment-count"> <i class="fa fa-comment"></i>&nbsp; {$li['solve']+$li['unsolve']} </span>
                                            <span class="date"><i class="fa fa-calendar"></i>&nbsp; {$li['updatetime']|date="y-m-d",###}</span>
                                        </div>
                                        <div class="entry-excerpt">{$li['articleKey']}</div>
                                        <a href="{:addon_url('mall/help/detail',['id'=>$li['id']])}" class="button read-more">Read more&nbsp; <i class="fa fa-angle-double-right"></i></a> </div>
                                </div>
                            </article>
                        </li>
                        {/volist}
                    </ul>

                </div>
            </div>
            <!-- ./ Center colunm -->
        </div>
        <!-- ./row-->
    </div>
</section>
<!-- Main Container End -->
{/block}

{block name="js"}
{__block__}
<script type="text/javascript">
</script>

{/block}
